<?php
/*
Template Name: Liên hệ
*/
get_header();
?>

<div class="container">
	<div class="row">
    	<div class="col-sm-9 right-col">
        	<h3 class="bar">
                <a href="#">Liên hệ với chúng tôi</a>
                <span class="info_top">
                	10/03/2015 | By admin
                </span>
            </h3>
            <div class="contact-div">
                <div class="map">
                    <iframe width="890" height="450" frameborder="0" style="border:0" src="https://www.google.com/maps/embed/v1/place?q=Timecity%20Minh%20Khai&key=AIzaSyALw57MPkXnWXl82C5XIyy9tZGIcCD4a5c"></iframe>
                </div>
                <div class="detail-address">
                	<div class="first-col">
                        <p class="main_f">
                            <span>Đại lý NovaHomes </span>- Sàn giao dịch Bất Động Sản TimeCity
                        </p>
                        <p class="local">                    	
                            Địa chỉ: Số 458 Đường Minh Khai, Hai Bà Trưng, Hà Nội
                        </p>
                        <p class="tel">                    	
                            Điện thoại: 093.607.0274  *  098.919.4783
                        </p>
                        <p class="email">                    	
                            Email: info@novahomes.com.vn
                        </p>
                    </div>
                </div>
                <form id="frmContact" action="" method="post">
	                <div class="row frm_lh_detail">
	                	<div class="col-md-4 col-sm-6">
	                    	<div class="form-group">
	                    		<input type="text" name="name" class="input_contact required" placeholder="Họ tên" value="" />
	                        </div>
	                        <div class="form-group">
	                    		<input type="text" name="email" class="input_contact required" placeholder="Email" value="" />
	                        </div>
	                        <div class="form-group">
	                    		<input type="text" class="input_contact" name="phone" placeholder="Số điện thoại" value="" />
	                        </div>
	                    </div>
	                    <div class="col-md-8 col-sm-6">
	                    	<div class="form-group">
	                    		<input type="text" class="input_contact" name="title" placeholder="Tiêu đề" value="" />
	                        </div>
	                        <div class="form-group">
	                    		<textarea placeholder="Nội dung" class="required" name="message" id="message"></textarea>
	                        </div>
	                        <div class="form-group" style="border:none;">
	                    		<button type="submit" class="btn btn-primary">Gửi</button>
	                        </div>
	                    </div>
	                </div>
	            </form>
            </div>               
        </div>
       <?php
       $cateTieuDiem = 4;
       $cateDuAn = 6;
       ?>
    	<div class="col-sm-3 left-col">
        	<div class="left_boxes">
            	<h3 class="bar">
                	<a href="<?php echo get_category_link( $cateTieuDiem ); ?> ">
			            <?php echo get_cat_name( $cateTieuDiem ) ?>
			        </a>
                </h3>
                <?php $queryTieuDiem = new WP_Query( array('cat' => $cateTieuDiem, 'posts_per_page' => 6)); ?>
                <?php if ( $queryTieuDiem->have_posts() ) : ?>
                <ul>
                	<?php while ( $queryTieuDiem->have_posts() ) : $queryTieuDiem->the_post(); ?>
                	<li>
                    	<a href="<?php the_permalink() ?>"><?php echo trim_text(get_the_title(), 40) ?></a>
                    </li>
					<?php endwhile; ?>
                </ul>
            	<?php endif; ?>
            </div>
			<?php wp_reset_postdata(); ?>

            <div class="left_boxes duan_phanphoi">
            	<h3 class="bar">
                	<a href="<?php echo get_category_link( $cateDuAn ); ?> ">
			            <?php echo get_cat_name( $cateDuAn ) ?>
			        </a>
                </h3>
                <?php $queryDuAn = new WP_Query( array('cat' => $cateDuAn, 'posts_per_page' => 6)); ?>
                <?php if ( $queryDuAn->have_posts() ) : ?>
                <ul>
                	<?php while ( $queryDuAn->have_posts() ) : $queryDuAn->the_post(); ?>
                	<li>
                    	<a href="<?php the_permalink() ?>"><?php echo trim_text(get_the_title(), 40) ?></a>
                    </li>
					<?php endwhile; ?>
                </ul>
            	<?php endif; ?>
         	</div>
    		<?php wp_reset_postdata(); ?>
        </div>
        
    </div>            
</div>
<?php get_footer() ?>
